package router

import (
	"api-gateway/handler/service"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	//r.Use(pkg.AuthToken())
	r.POST("/ossUpload", service.OssUpload)
	r.POST("/publishVideo", service.PublishVideo)
	r.POST("/payMember", service.PayMember)
	r.GET("/getVideoList", service.GetVideoList)
	r.GET("/getHistory", service.GetHistory)
	r.GET("/findHis", service.FindHis)
	return r
}
